/*
   Copyright (C) 2008 Yen-Ju Chen <yjchenx gmail>

   This application is free software; you can redistribute it and/or 
   modify it under the terms of the MIT license. See COPYING.

*/

#import <AppKit/AppKit.h>

@class BCSequenceView;
@class ICItem;

@interface SequenceView: NSObject
{
	IBOutlet NSButton *editButton;
	IBOutlet NSPopUpButton *typeButton;
	IBOutlet BCSequenceView *sequenceView;
	IBOutlet NSView *view;
	id delegate;

	ICItem *item;
}

- (IBAction) editAction: (id) sender;
- (IBAction) typeAction: (id) sender;

- (NSView *) view;

- (void) setItem: (ICItem *) item;
- (ICItem *) item;

- (void) setDelegate: (id) delegate;
- (id) delegate;

@end

@interface NSObject (SequenceView)
- (void) sequenceViewDidFinishEditing: (SequenceView *) sv;
- (void) typeDidChangeInSequenceView: (SequenceView *) sv;
@end

